package com.litong.litongjiaoyu.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Date;

public class SysReservation {

    private long id;
    private String name;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private java.sql.Date date;

    private String time;
    private String course;
    private String phone;
    private String address;
    private long status;
    private String types;
    private String receive;
    private String openid;
    private String teacherName;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }

    public String getTypes() {
        return types;
    }

    public void setTypes(String types) {
        this.types = types;
    }

    public String getReceive() {
        return receive;
    }

    public void setReceive(String receive) {
        this.receive = receive;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }
    
    public String getTeacherName() {
        return teacherName;
    }
    
    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof SysReservation)) return false;
        
        SysReservation that = (SysReservation) o;
        
        if (getId() != that.getId()) return false;
        if (getStatus() != that.getStatus()) return false;
        if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) return false;
        if (getDate() != null ? !getDate().equals(that.getDate()) : that.getDate() != null) return false;
        if (getTime() != null ? !getTime().equals(that.getTime()) : that.getTime() != null) return false;
        if (getCourse() != null ? !getCourse().equals(that.getCourse()) : that.getCourse() != null) return false;
        if (getPhone() != null ? !getPhone().equals(that.getPhone()) : that.getPhone() != null) return false;
        if (getAddress() != null ? !getAddress().equals(that.getAddress()) : that.getAddress() != null) return false;
        if (getTypes() != null ? !getTypes().equals(that.getTypes()) : that.getTypes() != null) return false;
        if (getReceive() != null ? !getReceive().equals(that.getReceive()) : that.getReceive() != null) return false;
        if (getOpenid() != null ? !getOpenid().equals(that.getOpenid()) : that.getOpenid() != null) return false;
        return getTeacherName() != null ? getTeacherName().equals(that.getTeacherName()) : that.getTeacherName() == null;
    }
    
    @Override
    public int hashCode() {
        int result = (int) (getId() ^ (getId() >>> 32));
        result = 31 * result + (getName() != null ? getName().hashCode() : 0);
        result = 31 * result + (getDate() != null ? getDate().hashCode() : 0);
        result = 31 * result + (getTime() != null ? getTime().hashCode() : 0);
        result = 31 * result + (getCourse() != null ? getCourse().hashCode() : 0);
        result = 31 * result + (getPhone() != null ? getPhone().hashCode() : 0);
        result = 31 * result + (getAddress() != null ? getAddress().hashCode() : 0);
        result = 31 * result + (int) (getStatus() ^ (getStatus() >>> 32));
        result = 31 * result + (getTypes() != null ? getTypes().hashCode() : 0);
        result = 31 * result + (getReceive() != null ? getReceive().hashCode() : 0);
        result = 31 * result + (getOpenid() != null ? getOpenid().hashCode() : 0);
        result = 31 * result + (getTeacherName() != null ? getTeacherName().hashCode() : 0);
        return result;
    }
    
    @Override
    public String toString() {
        return "SysReservation{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", time=" + time +
                ", course='" + course + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", status=" + status +
                ", types='" + types + '\'' +
                ", receive='" + receive + '\'' +
                ", openid='" + openid + '\'' +
                '}';
    }
}
